package com.xdxc.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 实体类对应数据库中的表 paper
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("paper")
public class Paper implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)

    private Long id;
    @JsonSerialize(using = ToStringSerializer.class)

    private Long quId;
    private Integer quType;
    private String quTypeDictText;
    private String manual;
    private Integer sort;
    private Integer answerOrder; // Assuming this is Integer
    private Double score;
    private Long paperId; // Assuming this is Long, same as id
    private Long groupId; // Assuming this is Long, referring to some group ID
    @TableField(exist = false)
    private boolean answered;
}
